#include <string.h>
-/**
+/*
* SECTION:gactionmuxer
* @short_description: Aggregate and monitor several action groups
*
* This class is typically only used at the site of "consumption" of
* actions (eg: when displaying a menu that contains many actions on
* different objects).
- *
- * Since: 2.32
- **/
+ */
static void g_action_muxer_group_iface_init (GActionGroupInterface *iface);
static void g_action_muxer_observable_iface_init (GActionObservableInterface *iface);
Action *action;
GSList *node;
- g_print ("feeling changes\n");
-
action = g_action_muxer_lookup_action (group->muxer, group->prefix, action_name, &fullname);
for (node = action ? action->watchers : NULL; node; node = node->next)
g_action_observer_action_enabled_changed (node->data, G_ACTION_OBSERVABLE (group->muxer), fullname, enabled);
class->finalize = g_action_muxer_finalize;
}
-/**
+/*
* g_action_muxer_insert:
* @muxer: a #GActionMuxer
* @prefix: the prefix string for the action group
* "action_added" notifications will be emitted, as appropriate.
*
* @prefix must not contain a dot ('.').
- *
- * Since: 2.32
- **/
+ */
void
g_action_muxer_insert (GActionMuxer *muxer,
const gchar *prefix,
G_CALLBACK (g_action_muxer_action_state_changed), group);
}
-/**
+/*
* g_action_muxer_remove:
* @muxer: a #GActionMuxer
* @prefix: the prefix of the action group to remove
*
* If any #GActionObservers are registered for actions in the group,
* "action_removed" notifications will be emitted, as appropriate.
- *
- * Since: 2.32
- **/
+ */
void
g_action_muxer_remove (GActionMuxer *muxer,
const gchar *prefix)
}
}
-/**
+/*
* g_action_muxer_new:
*
* Creates a new #GActionMuxer.
- *
- * Since: 2.32
- **/
+ */
GActionMuxer *
g_action_muxer_new (void)
{
G_DEFINE_INTERFACE (GActionObservable, g_action_observable, G_TYPE_OBJECT)
-/**
+/*
* SECTION:gactionobserable
* @short_description: an interface implemented by objects that report
* changes to actions
- *
- * Since: 2.32
*/
void
{
}
-/**
+/*
* g_action_observable_register_observer:
* @observable: a #GActionObservable
* @action_name: the name of the action
*
* Registers @observer as being interested in changes to @action_name on
* @observable.
- *
- * Since: 2.32
- **/
+ */
void
g_action_observable_register_observer (GActionObservable *observable,
const gchar *action_name,
->register_observer (observable, action_name, observer);
}
-/**
+/*
* g_action_observable_unregister_observer:
* @observable: a #GActionObservable
* @action_name: the name of the action
*
* If the observer was registered multiple times, it must be
* unregistered an equal number of times.
- *
- * Since: 2.32
- **/
+ */
void
g_action_observable_unregister_observer (GActionObservable *observable,
const gchar *action_name,
* - even if quarking is acceptable, #GObject signal details are
* implemented by scanning a linked list, so there is no real
* decrease in complexity
- *
- * Since: 2.32
*/
void
{
}
-/**
+/*
* g_action_observer_action_added:
* @observer: a #GActionObserver
* @observable: the source of the event
*
* This function should only be called by objects with which the
* observer has explicitly registered itself to receive events.
- *
- * Since: 2.32
- **/
+ */
void
g_action_observer_action_added (GActionObserver *observer,
GActionObservable *observable,
->action_added (observer, observable, action_name, parameter_type, enabled, state);
}
-/**
+/*
* g_action_observer_action_enabled_changed:
* @observer: a #GActionObserver
* @observable: the source of the event
*
* This function should only be called by objects with which the
* observer has explicitly registered itself to receive events.
- *
- * Since: 2.32
- **/
+ */
void
g_action_observer_action_enabled_changed (GActionObserver *observer,
GActionObservable *observable,
->action_enabled_changed (observer, observable, action_name, enabled);
}
-/**
+/*
* g_action_observer_action_state_changed:
* @observer: a #GActionObserver
* @observable: the source of the event
*
* This function should only be called by objects with which the
* observer has explicitly registered itself to receive events.
- *
- * Since: 2.32
- **/
+ */
void
g_action_observer_action_state_changed (GActionObserver *observer,
GActionObservable *observable,
->action_state_changed (observer, observable, action_name, state);
}
-/**
+/*
* g_action_observer_action_removed:
* @observer: a #GActionObserver
* @observable: the source of the event
*
* This function should only be called by objects with which the
* observer has explicitly registered itself to receive events.
- *
- * Since: 2.32
- **/
+ */
void
g_action_observer_action_removed (GActionObserver *observer,
GActionObservable *observable,